import request from '@/utils/request.js'

export const reqIndexClassify = data => request({
	method: 'GET',
	url: '/api/bizhi/classify',
	data
})

// 通过分类ID获取详细的壁纸列表
export const reqDetailByClassifyId = data => request({
	method: 'GET',
	url: '/api/bizhi/wallList',
	data
})

// 通过id获取壁纸详情
export const reqDetailWall = data => request({
	method: 'GET',
	url: '/api/bizhi/detailWall',
	data
})

// 为壁纸评分
export const reqSetScore = data => request({
	method: 'GET',
	url: '/api/bizhi/setupScore',
	data
})

// 下载壁纸
export const reqDownloadWall = data => request({
	method: 'GET',
	url: '/api/bizhi/downloadWall',
	data
}) 

// 搜索壁纸
export const reqSearchWall = data => request({
	method: 'GET',
	url: '/api/bizhi/searchWall',
	data
})